package com.shop.shop_end.utils.result;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
//@Builder  //return Result.builder().data(result).build();
@Accessors(chain = true)
public class Result<T> {
    private Integer code;
    private String desc;
    private Object data;

    Result() {
    }

    public Result setCode(ResultCodeEnum resultCodeEnum) {
        this.code = resultCodeEnum.getCode();
        return this;
    }

}
